 {
        var o = require("../../Comm/ChatResConfig.js");
        cc.Class({
            extends: cc.Component,
            properties: {
                nodeHead: {
                    default: null,
                    type: cc.Node
                },
                labCoin: {
                    default: null,
                    type: cc.Label
                },
                labName: {
                    default: null,
                    type: cc.Label
                },
                sexIcon: {
                    default: null,
                    type: cc.Sprite
                },
                itemPre: {
                    default: null,
                    type: cc.Prefab
                },
                mask: {
                    default: null,
                    type: cc.Node
                }
            },
            onLoad: function () {
                this.scrollView = Global.utils.searchNode(this.node, "scrollView").getComponent(cc.ScrollView),
                    this.content = this.scrollView.content;
            },
            start: function () {
            },
            onDestroy: function () {
                Global.notificationCenter.offAll(this);
            },
            setData: function (e) {
                this.seatId = e.seatId, this.coin = e.coin, this.pic = e.pic, this.name = e.name,
                    this.sex = e.sex, this.refresh(), this.createItems();
            },
            refresh: function () {
                var e = this.nodeHead.getComponent("HeadController");
                e && e.bindData(this.pic), this.sex == Global.config.sex.Boy ? Global.spriteAtlas.setSpriteFrame(this.sexIcon, "Texture/chat_emotion", "GRXX_2") : Global.spriteAtlas.setSpriteFrame(this.sexIcon, "Texture/chat_emotion", "GRXX_3"),
                    this.labCoin.node.parent.active = !0, this.labCoin.string = Global.utils.exchangeToWan(this.coin),
                    this.labName.node.parent.active = !0;
                var t = this.name;
                this.labName.string = t, this.mask.getComponent(cc.Widget).target = cc.find("Canvas"),
                    this.mask.on("touchend", this.hideBar, this);
            },
            hideBar: function () {
                Global.notificationCenter.emit(Global.eventName.GAME_DES_INTERATIONBAR);
            },
            _refresh: function () {
                this.refresh();
            },
            createItems: function () {
                for (var e = 0; e < 5; e++) {
                    var t = cc.instantiate(this.itemPre);
                    this.content && this.content.addChild(t), t.getComponent("InteractionItem").setData({
                        spfName: o.INTERACT_EMOTION_ICON[e],
                        targetSeatIndex: this.seatId
                    });
                }
                this.schedule(function () {
                    var e = this.randomIndex;
                    this.randomIndex = Global.utils.randomInt(0, this.content.children.length - 1);
                    do {
                        this.randomIndex = Global.utils.randomInt(0, this.content.children.length - 1);
                    } while (this.randomIndex === e);
                    this.content.children[this.randomIndex].getComponent("InteractionItem").playAni();
                }.bind(this), 2);
            }
        })
    }